package cn.javass.dp.abstractfactory.example4;

public class Schema3 implements AbstractFactory{
    @Override
    public Object createProduct(int type) {
        Object obj = null;
        if(type == 1) {
            obj = new AMDCPU(939);
        } else if (type == 2) {
            obj = new MSIMainboard(939);
        } else if (type ==3) {
            obj = new HyMemory();
        }
        return obj;
    }
}
